package xml;

import org.dom4j.Document;
import org.dom4j.Element;
import org.junit.Test;

/**
 * Created by :Infaraway
 * DATE : 2017/3/8
 * Time : 21:19
 * Funtion :
 */
public class TestXml {

    @Test
    public void testXml(){

        Document document = XmlUtils.getDocument();
/*
        //XmlUtils.getAll(document);
        Element element = document.getRootElement();

        System.out.println("----------- XmlUtils.getElements--------------");
        XmlUtils.getElements(element);

        System.out.println("----------- XmlUtils.getElementsByName--------------");
        Element userElement = XmlUtils.getElementByName(element, "User");

        System.out.println("----------- XmlUtils.getAttributes--------------");
        XmlUtils.getAttributes(userElement);*/




    }
}
